package com.zcoj.pojo.Dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author 剩xia的盛夏
 * @date 2023/02/24 16:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
public class Problem implements Serializable {

    private static final long serialVersionUID = 2892248514883451461L;

    @ApiModelProperty(value = "Id 默认1000开始", example = "1")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "判题模式 -default interactive")
    private String judgeMode;

    @ApiModelProperty(value = "题目标题")
    private String tilte;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "题目内容描述")
    private String contentDescription;

    @ApiModelProperty(value = "输入描述")
    private String inputDescription;

    @ApiModelProperty(value = "输出描述")
    private String outputDescription;

    @ApiModelProperty(value = "输入案例")
    private String inputCase;

    @ApiModelProperty(value = "输出案例")
    private String outputCase;

    @ApiModelProperty(value = "团队id")
    private Integer gid;

    @ApiModelProperty(value = "训练id")
    private Integer tid;

    @ApiModelProperty(value = "比赛id")
    private Integer cid;

    @ApiModelProperty(value = "题目标签")
    private Integer tag;

    @ApiModelProperty(value = "0为ACM 1为OI", example = "1")
    private Integer type;

    @ApiModelProperty(value = "时间限制(ms)默认为C/C++限制，其他语言为双倍", example = "1")
    private Integer timeLimit;

    @ApiModelProperty(value = "空间限制(mb)默认为C/C++限制，其他语言双倍", example = "1")
    private Integer memoryLimit;

    @ApiModelProperty(value = "栈限制(mb),默认为128mb", example = "1")
    private Integer stackLimit;

    @ApiModelProperty(value = "题目来源")
    private Integer source;

    @ApiModelProperty(value = "题目难度 0 1 2 3 4 5", example = "1")
    private Integer difficulty;

    @ApiModelProperty(value = "提示")
    private String hint;

    @ApiModelProperty(value = "版本")
    private String caseVersion;

    @ApiModelProperty(value = "Oi题目时的分数，默认为100", example = "1")
    private Integer oiScore;

    @ApiModelProperty(value = "测试案例数量", example = "1")
    private Integer caseNum;

    @ApiModelProperty(value = "题目当前状态 1 公开 2 为私有 3为比赛中", example = "1")
    private Integer problemStatus;

    @ApiModelProperty(value = "是否开启该题的测试样例查看 0关闭 1开启", example = "1")
    private Integer openCaseResult;

    @ApiModelProperty(value = "最后修改题目的用户")
    private String modifiedUser;

    @ApiModelProperty(value = "题目状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
